import Vue from 'vue'
import Router from 'vue-router'
import Index from "@/components/index/index"
import Form from "@/components/form/index"
import Flowy from "@/components/flowy/index";
import List from "@/components/list/index";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        breadcrumb: true
      },
      children: [
        {
          path: '/list',
          name: 'List',
          component: List,
          meta: {
            name: '流程列表',
            breadcrumb: true,
            icon: 'el-icon-s-order'
          }
        },
        {
          path: '/flowy',
          name: 'Flowy',
          component: Flowy,
          meta: {
            breadcrumb: false,
            icon: 'el-icon-location'
          }
        },
        {
          path: '/form',
          name: 'Form',
          component: Form
        },
      ]
    },
  ],
  mode: "history"
})
